﻿
//自定义新增
var fnCustomAdd = function () {
    window.parent.parent.$("#tabs").tabs('close', '新增期初数据');
    var pagetitle = "新增期初数据";
    parent.parent.addTabs(pagetitle, '../Crm/Customer/AddLayoutRecord.aspx?r=' + Math.random() + '&flag=0&entity=' + const_EditEntity + '&title=' + encodeURI(pagetitle));
    parent.parent.NeedRefreshPage = this;
}
//自定义双击
function CustomDbClick() {
    
}
//自定义编辑
var fnCustomEdit = function () {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    var vid = record.getData(const_entityID);
    if (vid != "") {
        window.parent.parent.$("#tabs").tabs('close', '编辑期初数据');
        var pagetitle = "编辑期初数据";
        parent.parent.addTabs(pagetitle, '../Crm/Customer/AddLayoutRecord.aspx?r=' + Math.random() + '&flag=1&entity=' + const_EditEntity + '&id=' + vid + '&title=' + encodeURI(pagetitle));
        parent.parent.NeedRefreshPage = this;
    }
}
//自定义删除方法
var fnCustomDeleteData = function () {
    YAHOO.example.container.dialog3.hide();
}